package io.gitee.hchaojie.day04.exam;

public class Main {
    public static void main(String[] args) {
        Student s = new Student();

        s.setName("hchaojie");

        System.out.println(s.name);
    }
}

class Teacher {
    public String name;

    public void setName(String name) {
        this.name = name;
    }
}

class Student extends Teacher {
    public String name;
}


